package com.yihaodian.search.code.model;

public class SourceCodeEntry {
	private String id;
	
	/**
	 * The relative path of the file(Directory) in the svn repository.
	 */
	private String relativPath;
	
	/**
	 * The content of the source file.
	 */
	private String content;
	
	/**
	 * Millsecond to record last update time. 
	 */
	private long lastUpdateTime;
	
	/**
	 * File type:
	 * 0: java
	 * 1: txt
	 * ...
	 */
	private String fileType;
	
	private String fileName;
	
	/**
	 * Which project the source belong to.
	 */
	private String projectName;
	
	/**
	 * Svn revision
	 */
	private String revision;
	
	private String author;

	public String getRelativPath() {
		return relativPath;
	}

	public void setRelativPath(String relativPath) {
		this.relativPath = relativPath;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public long getLastUpdateTime() {
		return lastUpdateTime;
	}

	public void setLastUpdateTime(long lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

	public String getFileType() {
		return fileType;
	}

	public void setFileType(String fileType) {
		this.fileType = fileType;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	public String getRevision() {
		return revision;
	}

	public void setRevision(String revision) {
		this.revision = revision;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}
	

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Override
	public String toString() {
		return "SourceCodeEntry [relativPath=" + relativPath + ", content="
				+ content + ", lastUpdateTime=" + lastUpdateTime
				+ ", fileType=" + fileType + ", fileName=" + fileName
				+ ", projectName=" + projectName + ", revision=" + revision
				+ ", author=" + author
				+ "]";
	}
	
}
